package com.blueocean_health.care.management.domain.dto;


import com.blueocean_health.care.management.common.excel.ExcelResources;

/**
 * 提成汇总表的出参结构
 * @author chenpeng
 */
public class SelectCareSalarySummaryRespDto implements Comparable<SelectCareSalarySummaryRespDto> {

	private String workingDay;
	private String workId;
	private String workName;
	private String dayPay;
	private Double dayPayDouble;

	public SelectCareSalarySummaryRespDto() {
	}

	@ExcelResources(title = "发生日期", order = 1)
	public String getWorkingDay() {
		return workingDay;
	}
	public void setWorkingDay(String workingDay) {
		this.workingDay = workingDay;
	}

	public String getWorkId() {
		return workId;
	}
	public void setWorkId(String workId) {
		this.workId = workId;
	}

	@ExcelResources(title = "护工", order = 2)
	public String getWorkName() {
		return workName;
	}
	public void setWorkName(String workName) {
		this.workName = workName;
	}

	@ExcelResources(title = "提成（元）", order = 3,isNum = 1)
	public String getDayPay() {
		return dayPay;
	}
	public void setDayPay(String dayPay) {
		this.dayPay = dayPay;
	}

	public Double getDayPayDouble() {
		return dayPayDouble;
	}

	public void setDayPayDouble(Double dayPayDouble) {
		this.dayPayDouble = dayPayDouble;
	}

	@Override
	public int compareTo(SelectCareSalarySummaryRespDto o) {
		if(o.getWorkingDay().equals(this.workingDay)){
			return this.workId == null ? 1 : this.workId.compareTo(o.getWorkId());
		}
		return o.getWorkingDay().compareTo(this.workingDay);
	}
	
	
	
	
}
